const mongoose = require('mongoose');

mongoose.connect('mongodb://localhost:27017/Tomoe');

mongoose.connection.on('open',() => {
    console.log('connection success');
});

mongoose.connection.on('error',() => {
    console.log('connection failed');
});

module.exports = mongoose;
